package com.ruoyi.fep.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 基本信息对象 fep_buyers
 * 
 * @author zj
 * @date 2023-04-12
 */
public class Buyers extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long buyerId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 邮件 */
    @Excel(name = "邮件")
    private String email;

    /** 地址 */
    @Excel(name = "地址")
    private String homeAddress;

    /**当前用户包含哪些订单 */
    @Excel(name="订单")
    private List<Orders> ordersList;

    public List<Orders> getOrdersList() {
        return ordersList;
    }

    public void setOrdersList(List<Orders> ordersList) {
        this.ordersList = ordersList;
    }

    public void setBuyerId(Long buyerId)
    {
        this.buyerId = buyerId;
    }

    public Long getBuyerId() 
    {
        return buyerId;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setHomeAddress(String homeAddress) 
    {
        this.homeAddress = homeAddress;
    }

    public String getHomeAddress() 
    {
        return homeAddress;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("buyerId", getBuyerId())
            .append("username", getUsername())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("homeAddress", getHomeAddress())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
                .append("ordersList",getOrdersList())
            .toString();
    }
}
